package wqh.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.AlarmEventConfirmDao;
import wqh.domain.AlarmEventConfirm;
import wqh.service.AlarmEventConfirmService;

import java.util.List;

@Service("alarmEventConfirmService")
public class AlarmEventConfirmServiceImpl implements AlarmEventConfirmService{

    @Autowired
    private AlarmEventConfirmDao alarmEventConfirmDao;

    public int selectCount() {
        return this.alarmEventConfirmDao.selectCount();
    }

    public List<AlarmEventConfirm> findAllRecord() {
        return this.alarmEventConfirmDao.findAllRecord();
    }

    public int insertRecord(AlarmEventConfirm alarmEventConfirm) {
        return this.alarmEventConfirmDao.insertRecord(alarmEventConfirm);
    }

    public List<AlarmEventConfirm> findByTimeRange(Integer start, Integer end) {
        return this.alarmEventConfirmDao.findByTimeRange(start,end);
    }

    public int countByTimeRange(Integer start, Integer end) {
        return this.alarmEventConfirmDao.countByTimeRange(start, end);
    }

    public int deleteById(Integer id) {
        return this.alarmEventConfirmDao.deleteById(id);
    }
}
